<template>
    <div>
    <!-- <callRoom ref="callRoom"/> -->
      <div class="topIcon" @click="logout">
        <img src="../../assets/images/home/tuichu.png" />
      </div>
      <div class="tabsContainer">
        <el-tabs >
          <el-tab-pane label="每日">
            <day-report></day-report>
          </el-tab-pane>
          <!-- lazy 标签延迟渲染 -->
         <el-tab-pane label="1周" :lazy="true">
            <week-report></week-report>
          </el-tab-pane>
          <el-tab-pane label="1个月" :lazy="true">
            <month-report></month-report>
          </el-tab-pane>
        </el-tabs>
      </div>
    </div>
</template>

<script>
import dayReport from './dayReport.vue';
import weekReport from './weekReport.vue';
import monthReport from './monthReport.vue';
  export default {
    name: "sleepReport",
    components: {
      dayReport,
      weekReport,
      monthReport
    },
    methods: {
        logout() {
            this.$router.push("/");
        },
    }
  }
  </script>

  <style scoped>
   .topIcon,
  .topIcon img {
    width: 3.5rem;
    height: 3.5rem;
    margin-right: 2rem;
    position: absolute;
    right: 0;
    top: 1rem;
    cursor: pointer;
    z-index: 1;
  }
  .tabsContainer {
    width: calc(100% - 4rem);
    background: aliceblue;
    float: left;
    padding: 2rem 2rem 0rem 2rem;
  }
  .tabsContainer .el-tabs /deep/ .el-tabs__item {
    font-size: 1.1rem;
    font-weight: bold;
  }
  .adl-containerLeft{
    margin-top: 20px;
    margin-left: 2px;
    width: 33rem;
    float: left;
    /* border: 1px solid red; */
    padding: 0.9rem 1.8rem;
    border-radius: 14px;
    box-shadow: 0 14px 29px 0 rgb(0 0 0 / 20%), inset 0 0.5px 0.7px 0 rgb(0 0 0 / 20%);
    display: flex;
    flex-direction: column;
    height: min-content;
    position: relative;
  }
  .date{
    font-size: 1.3rem;
    font-weight: bold;
    color: rgb(142,110,172);
    line-height: 40px;margin-left: 12px;
  }
  .view /deep/ .el-tabs__header{
      padding: 0rem 1.5rem;
      width: 92%;
  }
  .bottom-border > td, .bottom-border > th {
    border-bottom: 1pt solid rgb(196, 200, 202);
    font-size: 12pt;
    width: 50%;
  } 
  .bottom-border{
    display: flex;
    justify-content: space-between;
    width: 100%;
  }
  .bottom-border > td{
      text-align: right;
  }
  h2{
    margin: 0;
    padding: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15pt;
  }
  .view /deep/.el-tabs__content{
    background: aliceblue;
  }
  .highlight {
    color: #8550FF;
    font-weight: 100;
    font-size: 27pt;
}
.echarttitle{
    line-height: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 1rem;
}

  </style>